package Math类;

public class MeterAndFoot {

	public static void main(String[] args) {
		System.out.println("英尺 \t\t\t米\t\t\t米\t\t\t英尺");
		int b = 20;
		for (double i = 1; i < 11; i++) {
			double meter = footToMeter(i);
			System.out.print(i+"\t\t\t"+meter+"\t\t\t");
			double foot = meterToFoot(b);
			System.out.println(b+"\t\t\t"+(double)Math.round(foot*1000)/1000+"\t\t\t");
			b += 5;
		}
	}
	/**
	 * 英尺转米
	 * @param foot
	 * @return
	 */
	public static double footToMeter(double foot){
		
		return foot * 0.305;
	}
	
	public static double meterToFoot(double meter){
		
		return meter / 0.305;
	}
}
